// Router.tsx
import React from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import About from '../view/About'

export default function router() {
  return (
    <Router>
      {/* 使用 Routes 替换曾经的 Switch */}
      <Routes>
        <Route path='/about' component={About} />
      </Routes>
    </Router>
  );
}
